package com.example.myone.Broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class NotificationReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        if ("com.example.ACTION_PLAY_PAUSE".equals(intent.getAction())) {
            MusicManager.getInstance(context).playPauseMusic(); // 播放暂停音乐
        }
    }
}
